#pragma once
typedef struct
{
	float x;
	float y;
	float z;
}Point;

class Algorithm
{
public:
	Algorithm(void);
	Point p;
	int nSizeX;
	int nSizeY;
	int nSizeZ;
	short *pOrgdata;
	float Bilinear(Point p, short *pOrgdata, const int nSizeX,const int nSizeY,const int nSizeZ);
	float Cubic(Point p, short *pOrgdata,const int nSizeX,const int nSizeY,const int nSizeZ);
	float CUBE(float x){return x * x * x;}
	float SQR(float x){return x * x;}
public:
	~Algorithm(void);
};
